<template>
  <div class="main">
    <div class="head">
      <div style="border: #4284db solid 1px">
        <router-link :to="{ name: 'Home' }" style="display: flex">
          <el-image
              src="@/assets/health_main.svg"
              class="logo"
              :preview-src-list="[]"
          />
          <h1 class="title">乐活之道</h1>
        </router-link>
      </div>
      <div style="border: #4284db solid 1px">
        <el-menu
            mode="horizontal"
            class="nav-menu"
        >
          <el-menu-item index="Home">
            <template #title>
              <el-icon><Reading /></el-icon>
              <span>健康咨询</span>
            </template>
          </el-menu-item>
          <el-menu-item index="Subscribe">
            <template #title>
              <el-icon><Star /></el-icon>
              <span>我的收藏</span>
            </template>
          </el-menu-item>
          <el-menu-item index="Model">
            <template #title>
              <el-icon><DataAnalysis /></el-icon>
              <span>健康指标</span>
            </template>
          </el-menu-item>
        </el-menu>
      </div>
      <div style="border: #4284db solid 1px">3</div>
      <div style="border: #4284db solid 1px">4</div>
    </div>
    <div class="center">

    </div>
  </div>
</template>
<script setup>

import {DataAnalysis, Reading, Star} from "@element-plus/icons-vue";
</script>

<style scoped>
.main {
  width: 100%;
  height: 100vh;
  .head{
    width: 80%;
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(300px,1fr));
    margin: 0 auto;
  }
  .center{
    background-color: #4284db;
  }
}
</style>